﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Item.Master" AutoEventWireup="true"
    CodeBehind="DeptItem.aspx.cs" Inherits="SGDemo.Permission.DeptItem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">
    <script src="DeptItem.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpBody" runat="server">
<div class="ui-menu">
        <uc:Menu ID="menu1" runat="server" DataFile="../Views/Permission/Menu/DeptItem.xml"
            PageCode="DeptItem" />
    </div>
    <div class="ui-wrapper">
        <div class="ui-hidden">
            <dx:ASPxLabel ID="lblKeyid" ClientInstanceName="lblKeyid" runat="server" />
            <dx:ASPxLabel ID="lblParentKeyid" ClientInstanceName="lblParentKeyid" runat="server" />
           
        </div>
        <ul class="ui-list">
            <li>
                <dx:ASPxLabel ID="lblDeptName" runat="server" Text="部门名称：" ForeColor="Red" AssociatedControlID="txtDeptName" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtDeptName" ClientInstanceName="txtDeptName" runat="server"
                    Width="120px">
                    <ValidationSettings>
                        <RequiredField IsRequired="True" ErrorText="部门名称必须填写" />
                        <RegularExpression ValidationExpression=".{2,}" ErrorText="部门名称至少填写两个字符" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblPassword" runat="server" Text="部门编码：" AssociatedControlID="txtDeptCode" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtDeptCode" ClientInstanceName="txtDeptCode" runat="server"
                    Width="120px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblRealname" runat="server" Text="助记码：" AssociatedControlID="txtHelpCode" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtHelpCode" ClientInstanceName="txtHelpCode" runat="server"
                    Width="120px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblDept" runat="server" Text="类别：" ForeColor="Red" AssociatedControlID="cbDeptType" />
            </li>
            <li>
                <dx:ASPxComboBox ID="cbDeptType" ClientInstanceName="cbDeptType" runat="server" Width="120">
                    <Items>
                        <dx:ListEditItem Text="公司" Value="0" />
                        <dx:ListEditItem Text="普通部门" Value="1" />
                        <dx:ListEditItem Text="特殊部门" Value="2" />
                    </Items>
                    <ValidationSettings>
                        <RequiredField IsRequired="True" ErrorText="类别必须填写" />
                    </ValidationSettings>
                </dx:ASPxComboBox>
            </li>
        </ul>
        <ul class="ui-list">
            <li>
                <dx:ASPxLabel ID="lblContact" runat="server" Text="联系人：" AssociatedControlID="txtContact" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtContact" ClientInstanceName="txtContact" runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
             <li>
                <dx:ASPxLabel ID="lblPhone" runat="server" Text="电话：" AssociatedControlID="txtPhone" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtPhone" ClientInstanceName="txtPhone" runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblMobilePhone" runat="server" Text="手机号码：" AssociatedControlID="txtMobilePhone" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtMobilePhone" ClientInstanceName="txtMobilePhone" runat="server"
                    Width="120px">
                    <ValidationSettings>
                        <RegularExpression ValidationExpression="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)"
                            ErrorText="无效的手机号码格式" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblComplainPhone" runat="server" Text="投诉电话：" AssociatedControlID="txtComplainPhone" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtComplainPhone" ClientInstanceName="txtComplainPhone" runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
        </ul>
        <ul class="ui-list">
            <li>
                <dx:ASPxLabel ID="lblFax" runat="server" Text="传真：" AssociatedControlID="txtFax" />
            </li>
            <li>
                 <dx:ASPxTextBox ID="txtFax" ClientInstanceName="txtFax" runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblDeptFullName" runat="server" Text="部门全称：" AssociatedControlID="txtDeptFullName" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtDeptFullName" ClientInstanceName="txtDeptFullName" runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblDeptFullNameEn" runat="server" Text="部门英文全称：" AssociatedControlID="txtDeptFullNameEn" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtDeptFullNameEn" ClientInstanceName="txtDeptFullNameEn" runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblPostcode" runat="server" Text="邮编：" AssociatedControlID="txtPostcode" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtPostcode" ClientInstanceName="txtPostcode" runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
        </ul>
        <ul class="ui-list">
            <li>
                <dx:ASPxLabel ID="lblAddress" runat="server" Text="地址：" AssociatedControlID="txtAddress" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtAddress" ClientInstanceName="txtAddress"
                    runat="server" Width="340px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblAddressEn" runat="server" Text="英文地址：" AssociatedControlID="txtAddressEn" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtAddressEn" ClientInstanceName="txtAddressEn" runat="server"
                    Width="340px">
                </dx:ASPxTextBox>
            </li>
           
        </ul>
        <ul class="ui-list">
            <li>
                <dx:ASPxLabel ID="lblBusinessNumber" runat="server" Text="工商登记号：" AssociatedControlID="txtBusinessNumber" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtBusinessNumber" ClientInstanceName="txtBusinessNumber"
                    runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
             <li>
                <dx:ASPxLabel ID="lblTaxNumber" runat="server" Text="税务登记号：" AssociatedControlID="txtTaxNumber" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtTaxNumber" ClientInstanceName="txtTaxNumber"
                    runat="server" Width="120px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblRemark" runat="server" Text="备注：" AssociatedControlID="txtRemark" />
            </li>
            <li>
                 <dx:ASPxTextBox ID="txtRemark" ClientInstanceName="txtRemark"
                    runat="server" Width="340px">
                </dx:ASPxTextBox>
            </li>
        </ul>
       
        <div class="ui-validation">
            <dx:ASPxValidationSummary ID="vsSummary" runat="server" RenderMode="BulletedList"
                Width="100%" ClientInstanceName="validationSummary" ShowErrorsInEditors="false"
                ShowErrorAsLink="true">
            </dx:ASPxValidationSummary>
        </div>
        <ul class="sl-floatcenter clearfix ui-btn-bottom ui-btn-saveforadd">
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnSaveToAdd" ClientInstanceName="btnSaveToAdd" runat="server"
                    Text="保 存" AutoPostBack="false">
                    <ClientSideEvents Click="doSaveForAdd" />
                </dx:ASPxButton>
            </li>
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnSaveAndContinueToAdd" ClientInstanceName="btnSaveAndContinueToAdd"
                    runat="server" Text="保存完继续新增" AutoPostBack="false">
                    <ClientSideEvents Click="doSaveAndContinueToAdd" />
                </dx:ASPxButton>
            </li>
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnResetForAdd" ClientInstanceName="btnResetForAdd" runat="server"
                    Text="重 置" AutoPostBack="false">
                    <ClientSideEvents Click="doResetForAdd" />
                </dx:ASPxButton>
            </li>
        </ul>
        <ul class="sl-floatcenter clearfix ui-btn-bottom ui-btn-saveforedit">
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnSaveToEdit" ClientInstanceName="btnSaveToEdit" runat="server"
                    Text="保 存" AutoPostBack="false">
                    <ClientSideEvents Click="doSaveForEdit" />
                </dx:ASPxButton>
            </li>
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnCancelForEdit" ClientInstanceName="btnCancelForEdit" runat="server"
                    Text="取 消" AutoPostBack="false">
                    <ClientSideEvents Click="doCancelForEdit" />
                </dx:ASPxButton>
            </li>
        </ul>
    </div>
    <div class="ui-state">
        <ul>
            <li>创建人： </li>
            <li>
                <dx:ASPxLabel ID="lblCreateName" ClientInstanceName="lblCreateName" runat="server" />
            </li>
            <li class="ui-state-seperator">| </li>
            <li>创建日期： </li>
            <li>
                <dx:ASPxLabel ID="lblCreateDate" ClientInstanceName="lblCreateDate" runat="server" />
            </li>
            <li class="ui-state-seperator">| </li>
            <li>编辑人： </li>
            <li>
                <dx:ASPxLabel ID="lblModifyName" ClientInstanceName="lblModifyName" runat="server" />
            </li>
            <li class="ui-state-seperator">| </li>
            <li>编辑日期： </li>
            <li>
                <dx:ASPxLabel ID="lblModifyDate" ClientInstanceName="lblModifyDate" runat="server" />
            </li>
        </ul>
    </div>
</asp:Content>
